#pragma once
#include <bgfx/bgfx.h>
#include "imgui/imgui.h"
#include <map>
class bgfx_imgui
{
public:
	//static void ClearAllFrameBuffer();
	static void reset(int width, int height);
	static void Init(void* hwnd,int width,int height);
	static void Render(int viewid, ImDrawData* _drawData);
	static int GetBgfxViewID(int imguiID);
private:
	static bgfx::VertexLayout  m_layout;
	static bgfx::TextureHandle m_texture;

	static bgfx::ProgramHandle m_program;
	static bgfx::UniformHandle u_imageLodEnabled;

	static bgfx::ProgramHandle m_imageProgram;
	static bgfx::UniformHandle s_tex;
	static std::map<int, int> mapViewID;
};

